package site.xuxingcan.NettyUtil.Handler;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

/**
 * Created by xuxingcan on 16-7-25.
 */
public class ServerHandler extends SimpleChannelInboundHandler<String> {
    private static int times = 0;

    @Override
    protected void channelRead0(ChannelHandlerContext channelHandlerContext, String s) throws Exception {
        times++;
        System.out.println(s + ":" + times);
    }
}
